Answer "Get real. You can't install it in this stack"
hide message window
exit mouseup
end if
--
ModResCopy sourceStack,fname,"XCMD","StdFile"
--
get the result
if first char of it is "E" then
put it into the message box
beep
answer "Attempt to install resource has failed."
else
beep
answer "Resource installation successful"
end if
hide message window
end mouseUp
-- part contents for background part 13
----- text -----
10
-- part contents for background part 2
----- text -----
StdFile
-- part contents for background part 3
----- text -----
Standard File Package positioning. Arrange for the Open and Save dialog boxes of applications to open at a specific folder before you “open” an application.
The command will beep if an error is encountered, and take no further action.
HyperCard seems to have the habit of resetting Standard File’s positioning in its idle handler, so it’s a good idea to call this XCMD just before you need it.
Thanks to:
Dewi Williams
2227 Juniper Court
Boulder CO 80302
(303) 443 9038
Delphi: DEWI
-- part contents for background part 10
----- text -----
Syntax:
StdFile("pathname")
"pathname" is the path to the volume or folder where the Standard File Package’s Open and Save dialog boxes should be positioned.